package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Data
@TableName("t_config_metadata")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
@Entity
@Table(name="T_CONFIG_METADATA")
public class ConfigMetadata extends BaseEntity {

    /**
     * 元数据编号
     */
	@Id
	@TableId(value = "matedata_id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
    @ApiModelProperty(value="元数据编号")
    private Long metadataId;

    /**
     * 四级编码
     */
	@Column(name = "data_id",length = 200)
	@ApiModelProperty(value="四级编码")
    private String dataId;

    /**
     * 元数据名称
     */
	@Column(name = "metadata_name",length = 200)
	@ApiModelProperty(value="元数据名称")
    private String metadataName;

    /**
     * 元数据描述
     */
	@Column(name = "metadata_description",length = 1024)
	@ApiModelProperty(value="元数据描述")
    private String metadataDescription;


}
